$(function () {
    $.ajax({
        url: '/myspringboot/suppliser/findAllDQL',
        type: 'post',
        dataType: "json",
        success: function (result){
            var dclist=result.data;
            var dcid = document.getElementById("cengci");
            dcid.innerHTML = "<option value='0'>全部</option>";
            for (var i = 0; i < dclist.length; i++) {
                var opt = document.createElement("option");
                opt.innerText = dclist[i].dqlName;
                opt.setAttribute("value", dclist[i].dqlId)
                dcid.appendChild(opt)
            }
        }
    })
})